home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Disk & Fichiers / FilterTop 1.0b4 / For Developers... / FW_QuickStart / FW_QuickStart.rsrc / PICT_4.png < prev    next >
Portable Network Graphic  |  1995-08-05  |  84KB  |  816x1056  |  8-bit (256 colors)
Labels: poster | reckoner | sky | skyscraper | waterfall | windowpane
OCR: EXIT FILTER (ResCod); release A4 register things This example would call "myCoolFil lter()" and pass the PB along to it. To do your stream man ipulat ion, "myCoolFilter()" will use callbacks defir the FTF ilter Cal lbacks allow your code to get the content of the input and place data the output stream To use stream you must open it: pb. >cb >Open (inputl &inputSt ream, &fndr info, &sugges ted spec), pb->cb >Open (output &output Stream, &fndr: -info &sugges ted spec) then read from pb->cb- >Read (inputSt ream, buffer, &countRead) You then do any work you need on the read buffer ("buffer" in the example above) then output to the output st ream wri teErr ->cb- ->Write (outputSt: ream, buffer countRead; then finally close the streams: err pb- ->cb >close (input tSt ream) pb- ->cb ->Close (outp ...